
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Selecting a tree node and navigating the tree</TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp239.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp241.htm" >Next</A>
<!-- End Header -->
<A NAME="BABCBDJA"></A><h1>Selecting a tree node and navigating the tree</h1>
<A NAME="TI8324"></A><p>You can select a tree node in the TreeView DataWindow in the
following ways:<A NAME="TI8325"></A>
<ul>
<li class=fi>Use the <b>SelectTreeNode</b> method
to select a tree node.</li>
<li class=ds>Set the Select Node By Mouse property to "true" and
then click a tree node to select it with the mouse.
</li>
</ul>
</p>
<A NAME="TI8326"></A><p>After you select a tree node in the TreeView DataWindow, you
can navigate the tree using the up, down, left, and right keys.</p>
<A NAME="TI8327"></A><table cellspacing=0 cellpadding=6 border=1 frame="void" rules="all"><tr><th  rowspan="1"  ><A NAME="TI8328"></A>Use this key</th>
<th  rowspan="1"  ><A NAME="TI8329"></A>To do this</th>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI8330"></A>Up </td>
<td  rowspan="1"  ><A NAME="TI8331"></A>Select a tree node prior to the currently
selected node.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI8332"></A>Down</td>
<td  rowspan="1"  ><A NAME="TI8333"></A>Select a tree node next to the currently
selected node.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI8334"></A>Left</td>
<td  rowspan="1"  ><A NAME="TI8335"></A>Collapse the currently selected node.
If the current tree node is a leaf node or the node has been collapsed,
the DataWindow just scrolls to the left, which is its normal behavior.</td>
</tr>
<tr><td  rowspan="1"  ><A NAME="TI8336"></A>Right</td>
<td  rowspan="1"  ><A NAME="TI8337"></A>Expand the currently selected node. If
the current tree node is a leaf node or the node has been expanded,
the DataWindow just scrolls to the right, which is its normal behavior.</td>
</tr>
</table>
<A NAME="TI8338"></A><p>For detailed information about TreeView DataWindow properties,
methods and events, see the <i>DataWindow Reference</i>
 or
the online Help.</p>

